package com.xxx;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;


@EnableDiscoveryClient  // 服务注册到nacos
@EnableFeignClients   // 服务调用feign
@RefreshScope  // nacos动态刷新
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class})  // 排除数据源
public class UserAPP {
    public static void main(String[] args) {
       SpringApplication.run(UserAPP.class, args);
    }
}
